﻿using System;

namespace LibMS.Models
{
    public class LibDocuments
    {
        public int DocumentId { get; set; }
        public int CategoryId { get; set; }
        public int? RackId { get; set; }
        public string KyHieu { get; set; }
        public string DocumentName { get; set; }
        public string ThumbnaiPath { get; set; }
        public string NXB { get; set; }
        public string Author { get; set; }
        public DateTime? CreateDate { get; set; }
        public int ViewCount { get; set; }
        public int? Total { get; set; }
        public string Descriptions { get; set; }
        public int? CreateBy { get; set; }
        //Category
        public string CategoryName { get; set; }
        //Creator
        public string CreatorName { get; set; }
        //Rack
        public string RackName { get; set; }
        //InsertBy
        public string CreateByName { get; set; }
    }

    public class LibRack
    {
        public int RackId { get; set; }
        public string RackName { get; set; }
    }

    public class LibCategories
    {
        public int CategoryId { get; set; }
        public int ParentCategoryId { get; set; }
        public string CategoryName { get; set; }
    }

    public class LibUploadData
    {
        public int UploadId { get; set; }
        public int DocumentId { get; set; }
        public string FileName { get; set; }
        public string FileExtension { get; set; }
        public string FilePath { get; set; }
        public DateTime UploadDate { get; set; }
    }

    public class LibBorrowDocument
    {
        public int BorrowDocumentId { get; set; }
        public int? UserId { get; set; }
        public int DocumentId { get; set; }
        public int Total { get; set; }
        public int BorrowDayCount { get; set; }
        public DateTime BorrowDate { get; set; }
        public DateTime? ReturnDate { get; set; }
        public int Status { get; set; }
        public string Reason { get; set; }
        //User
        public string UserName { get; set; }
        //Document
        public string DocumentName { get; set; }
        public string KyHieu { get; set; }
    }

    public class LibReader
    {
        public int ReaderId { get; set; }
        public string FullName { get; set; }
        public string Department { get; set; }
        public string MobilePhone { get; set; }
        public string Email { get; set; }
        public string Reason { get; set; }
    }

    public class LibCreateRegBorrow
    {
        public int DocumentId { get; set; }
        public string DocumentName { get; set; }
        public string DocumentKyHieu { get; set; }
        public int BorrowUserId { get; set; }
        public int BorrowTotal { get; set; }
        public int BorrowDayCount { get; set; }
        public string BorrowReason { get; set; }
    }

    public class CmsUser
    {
        public int UserID { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string RealName { get; set; }
        //Role
        public int RoleId { get; set; }
        public string RoleName { get; set; }
    }

    public class LibRole
    {
        public int RoleId { get; set; }
        public string RoleName { get; set; }
    }

    public class LibUserRole
    {
        public int UserId { get; set; }
        public int RoleId { get; set; }
        public int Active { get; set; }
    }
}